export const initAddComponentCloums= (typeList:SelectOption[])=>{
  const cloums=[
    {
      type: 'input',
      label: '备件名称：',
      key: 'name',
      rules: [{ required: true, message: '请填写名称' }]
    },{
      type: 'select',
      label: '类型',
      key: 'type',
      options: typeList,
      search:true,
      allowCreate:true,
      multiple:true,
      // multipleLimit:1,
      // defaultFirst:true,
      rules: [{ required: true, message: '请填写名称' }]
    },{
      type: 'input',
      label: '规格型号',
      key: 'specification',
      rules: [{ required: true, message: '请填写规格型号' }]
    },{
      type: 'input',
      label: '度量单位',
      key: 'unit',
      rules: [{ required: true, message: '请填写度量单位' }]
    }
  ] as AOUCloumn[]
  return cloums
}